package com.designpattern.structure.Decorator;

/**
 * @author Administration
 * @date 2021/10/18 - 13:56 - 星期一
 * @project 结构型模式中的装饰者模式     抽象装饰（Decorator）角色
 * @package com.designpattern.structure.Decorator
 * @by 晨
 */
public abstract class Garnish extends FastFood{

    private FastFood fastFood;

    public FastFood getFastFood() {
        return fastFood;
    }

    public void setFastFood(FastFood fastFood) {
        this.fastFood = fastFood;
    }

    public Garnish(FastFood fastFood, float price, String desc) {
        super(price,desc);
        this.fastFood = fastFood;
    }
}
